<template>
    <div id="tmpl">
        <mt-swipe :auto="2000" id="lunbo">
            <mt-swipe-item v-for="item  in images"><img :src="item.img" alt=""></mt-swipe-item>
        </mt-swipe>
    </div>
</template>
<script>
    export default {
        props: ['images']//用来接收父组件传入的数据
    }
</script>
<style scoped>
.mint-swipe {
        height: 190px;
    }

    .mint-swipe-item {
        /* background-color: red; */
        width: 100%;
    }

    .mint-swipe-item img {
        width: 100%;
    }
</style>